import matplotlib.patches as patches 
import matplotlib.pyplot as plt 
from sys import argv

x = []
y = []
segs = open(argv[2])
segs.readline()
for line in segs:
    x1, y1, x2, y2 = map(float, line.split())
    x.extend([x1, x2, None])
    y.extend([y1, y2, None])

plt.plot(x, y)

x = []
y = []
inp = open(argv[1])
inp.readline()
for line in inp:
    xx, yy = map(float, line.split())
    x.append(xx)
    y.append(yy)

plt.plot(x, y, 'ro')

plt.axis("equal")

plt.show() 

